package com.lianniu.web.controller;


import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;




@Controller
public class IndexController {		
	
	@RequestMapping("/index")
	public String index(HttpServletRequest request) {
	    String token = (String) request.getAttribute("token");
		return "/index";
	}	
	
	@RequestMapping("/welcome")
	public String top(HttpServletRequest request) {
		return "/welcome";
	}	
	
	@RequestMapping("/login")
	public String login(HttpServletRequest request) {
		return "/login";
	}
	 @RequestMapping("loadPage")
	    public String loadPage(){
	       return "loadPage/load_page";
	    }

	 @RequestMapping("loadPage2")
     public String loadPage2(){
        return "loadPage/load_page2";
     }
}
